//
//  NSObject+Util.m
//  FiveHealth
//
//  Created by WKC on 2018/4/19.
//  Copyright © 2018年 com.wukangcheng.fivehealths. All rights reserved.
//

#import "NSObject+Util.h"

@implementation NSObject (Util)

- (void)setSafeSingleDeckWith:(NSDictionary *)dic
{
    for (int i=0; i<dic.allKeys.count; i++) {
        NSString *key = [dic.allKeys objectAtIndex:i];
        id value = [dic objectForKey:key];
        if (objc_getAssociatedObject(self, &key) == nil)
        {
            objc_setAssociatedObject(self, &key, value,OBJC_ASSOCIATION_COPY_NONATOMIC);

        }
    }
}

@end
